package com.edu.mapper;

import com.edu.bean.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {

    List<Book> selectBooks(Book query);

    List<Book> selectBooks2(Book query);

    int updateBook(Book book);

    int insertBooks(@Param("bookList") List<Book> bookList);

    List<Book> selectBookByNames(@Param("bookNames") String[] names);

    List<Book> selectBookByName(String bookName);
}
